import Vue from 'vue'
const focus = Vue.directive(
    'focus', {
        update: function(el, {
            value
        }) {
            if (value) {
                el.focus()
            }
        }
    }
)
export { focus }